Skip to content

Add java.lang.reflect.Type to TypeRef per #331#449

Merged
artursouza merged 2 commits into
dapr:masterfrom
pkedy:deserialization_of_generic_types_293
Jan 22, 2021
Merged

Add java.lang.reflect.Type to TypeRef per #331#449
artursouza merged 2 commits into
dapr:masterfrom
pkedy:deserialization_of_generic_types_293

Conversation

@pkedy

@pkedy pkedy commented Jan 22, 2021

Copy link
Copy Markdown
Member

Added public static <T> TypeRef<T> get(Type type) to TypeRef

Added bonus: Having the generic <T> seems to work even if it isn't passed in as an argument.

Resolves issue #331

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

artursouza
artursouza previously approved these changes Jan 22, 2021
@pkedy pkedy changed the title Add support deserialization of generic types per #293 Add java.lang.reflect.Type to TypeRef per #331 Jan 22, 2021
@codecov

codecov Bot commented Jan 22, 2021

Copy link
Copy Markdown

Codecov Report

Merging #449 (ba0a004) into master (81b47f8) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #449      +/-   ##
============================================
+ Coverage     83.27%   83.30%   +0.02%     
- Complexity      859      861       +2     
============================================
  Files            74       74              
  Lines          2565     2569       +4     
  Branches        261      261              
============================================
+ Hits           2136     2140       +4     
  Misses          301      301              
  Partials        128      128              
Impacted Files Coverage Δ Complexity Δ
sdk/src/main/java/io/dapr/utils/TypeRef.java 84.31% <100.00%> (+1.33%) 16.00 <3.00> (+2.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81b47f8...985cf6a. Read the comment docs.

@artursouza artursouza merged commit 38b899d into dapr:master Jan 22, 2021
@pkedy pkedy deleted the deserialization_of_generic_types_293 branch January 23, 2021 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants